<?php
class ListeValue{
	private $id;
	private $label;
	private $Langue;
	private $list_id;
	function __construct($id) {

		if (is_int($id)){
			if($id >= 0){
				$this->id=$id;
			}else{
				throw new FieldFormatException($_SESSION['translator']->idVal);
			}
		}else{
			throw new FieldFormatException($_SESSION['translator']->idInt);
		}
	}
	function getId(){
		return $this->id;
	}
	function getLabel(){
		return $this->label;
	}
	function getLangue(){
		return $this->Langue;
	}
	function getListeId(){
		return $this->list_id;
	}
	function setLabel($label){
		$this->label = $label;
	}
	function setLangue($Langue){
		if(is_a($Langue, 'Langue')){
			$this->Langue = $Langue;
		}else{
			throw new FieldFormatException($_SESSION['translator']->reqInstance." Langue");
		}
	}
	function setListeId($listId){
		if(is_int($listId)){
			$this->list_id = $listId;
		}else{
			throw new FieldFormatException($_SESSION['translator']->idInt);
		}
	}
}
?>